package com.dodayum.java8.pattern.strategy;

/**
 * @author BaiYu
 * @date 2023/11/2415:20
 */
public interface IStrategy {
    void algorithm();
}

class ConcreteStrategyA implements IStrategy{
    @Override
    public void algorithm() {
        System.out.println("Strategy A");
    }
}

class ConcreteStrategyB implements IStrategy{
    @Override
    public void algorithm() {
        System.out.println("Strategy B");
    }
}
